#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import sysuser_blueprint
from api_1_0.sysUserResource.sysUserResource import SysUserResource
from api_1_0.sysUserResource.sysUserOtherResource import SysUserOtherResource

api = Api(sysuser_blueprint)

api.add_resource(SysUserResource, '/sysUser/<user_id>', '/sysUser', endpoint='SysUser')


@sysuser_blueprint.route('/sysuser/update/<user_id>', methods=['PUT'], endpoint='SysUserUpdate')
def update(user_id):
    return SysUserOtherResource.sensitive_update(user_id)
